package file.dir;

import java.io.File;

public class DeleteDirDemo {
    public static void main(String[] args) {
        for(int i=1;i<=100;i++){
            File dir=new File("./demo/test"+i);
            if(dir.exists()){
                dir.delete();
                System.out.println("删除成功");
            }
        }
    }
}
